package examples.helloworld

import de.saxsys.mvvmfx.FxmlView
import de.saxsys.mvvmfx.InjectViewModel
import javafx.fxml.FXML
import javafx.fxml.Initializable
import javafx.scene.control.Label

/**
 * Created by TK-chenbin on 2015/6/5.
 */
class HelloWorldView implements FxmlView<HelloWorldViewModel>, Initializable {
    @FXML
    private Label helloLabel

    @InjectViewModel
    private HelloWorldViewModel viewModel

    @Override
    void initialize(URL location, ResourceBundle resources) {
        helloLabel.textProperty().bind(viewModel.helloMessage)
    }
}
